package com.hybao.sync;

import java.util.List;
import java.util.Map;

import org.apache.log4j.Logger;

public class TradeSyncThread implements Runnable{
	private Logger log = Logger.getLogger(TradeSyncThread.class.getName());
	private List<String> taskIdList;
	private Map<String,String> taskMap;
	
	public void initTread(List<String> taskIdList,Map<String,String> taskMap){
		this.taskIdList = taskIdList;
		this.taskMap = taskMap;
	}
	
	public void destroy(){
		this.taskIdList = null;
		this.taskMap = null;
	}
	
	@Override
	public void run() {
		if(taskIdList == null){
			return;
		}
		if(taskIdList.size() == 0){
			return;
		}
		for(String taskId : taskIdList){
			log.info("task is started, the task Id is:" + taskId);
			String userNick = taskMap.get("userNick");
		}
		
	}
	
}
